package com.niiwoo.civet.trade.dao.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class AuditWorkTask {
    private Long id;

    private Long projectId;

    private String borrowerUserId;

    private String borrowerUserName;

    private String borrowerMobile;

    private Byte channelCode;

    private Date applyTime;

    private Integer deadline;

    private Date allotTime;

    private Date auditTime;

    private Long auditManagerId;

    private String auditManagerName;

    private Byte taskType;

    private Byte currentStep;

    private Long updateManager;

    private Date createTime;

    private Date updateTime;

    private Byte allotState;

    private Byte auditState;

    /**
     * 任务类型枚举
     */
    @Getter
    @AllArgsConstructor
    public enum TaskTypeEnum{
        SPEED_LOAN((byte)1,"极速借");

        private Byte type;
        private String desc;
    }

    /**
     * 分配状态枚举
     */
    @Getter
    @AllArgsConstructor
    public enum AllotStateEnum{
        NO_ALLOT((byte)0,"未分配"),
        ALLOTED((byte)1,"已分配");

        private Byte state;
        private String desc;
    }

    /**
     * 处理状态枚举
     */
    @Getter
    @AllArgsConstructor
    public enum AuditStateEnum{
        WAIT((byte)0,"待处理"),
        PASS((byte)1,"通过"),
        REJECT((byte)2,"驳回"),
        RETURN((byte)3,"退回");

        private Byte state;
        private String desc;
    }
}